package com.czwx.bee.business.manager.modular.sys.service;



import com.czwx.bee.base.database.common.BaseService;
import com.czwx.bee.business.manager.modular.sys.model.Role;

import java.util.List;
import java.util.Map;

public interface RoleService extends BaseService<Role> {


     List<Map> findUserRoleByUid(Long uid);

     /**
      * 给角色授权资源
      * @param role
      * @param ids
      * @return
      */
     Boolean  AuthRoleResource(Long role,String[]ids);

     /**
      *  角色关联资源树
      * @param rid
      * @return
      */
     List<Map> roleResources(Long rid);

     /**
      *
      */
      Map roleTreeWithIds(Long rid);

     /**
      * role select框
      */
     List<Map> roleSelect();
}
